package com.dongliu.dao;

import com.dongliu.domain.Book;
import com.dongliu.domain.Notice;
import com.dongliu.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface NoticeDao {

    @Update("update notice set content=#{content} where id=1")
    public int update(Notice notice);

    @Select("select * from notice where id=1")
    public Notice getContent();

}
